package com.api.user.dao;

import com.api.common.mybatis.ResultMap;
import com.api.core.ApiMapper;
import com.api.user.model.CompanionOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Mapper
public interface CompanionOrderMapper extends ApiMapper<CompanionOrder> {
    List<Map<String, Object>> orderList(@Param("params") Map<String, Object> params,@Param("order") Map<String, Object> orderParams);

    Integer getCount(@Param("params") Map<String, Object> params);

    BigDecimal orderCountAmount(@Param("params") Map<String, Object> params, @Param("order")Map<String, Object> orderParams);

    Integer orderCountState(@Param("params") Map<String, Object> params, @Param("i")int i);

    List<ResultMap<String, Object>> analysis(@Param("type")int type);

    List<ResultMap<String, Object>> dayAnalysis();
}